package com.dindang.maintenance.mvp.model.entity;

import java.util.List;

/**
 * Created by cxw on & 2019/1/24
 */
public class Repair {

    public static class RepairListParam {
        public int page;
        public int rows;
        public String likeValue;
        public int userId;
        public String corpId;
        public String bid;
        public String status;
        public String applyArea;
        public String errType;
        public String subType;
//        public String cFrom;
        public String createDateStart;
        public String createDateEnd;
        public String appointDateStart;
        public String appointDateEnd;
        public String completeDateStart;
        public String completeDateEnd;
    }

    public static class RepairList {
            /**
             * page : 1
             * pageSize : 10
             * total : 1
             * rows : [{"c_content":"","c_numCard":"20190305187615048501556","c_start_date":"","c_errtype":"","c_address":"碧水龙城/第X幢/第X单元/X层/x-101","c_applyTel":"1866874456464","c_applyName":"yang","c_subtype":"","c_applyArea":"","c_end_date":"","c_address_man":"碧水龙城/第X幢/第X单元/X层/x-101","l_id":2201,"c_status":"1","c_from":"2"}]
             * footer : []
             */

            private int page;
            private int pageSize;
            private int total;
            private List<RowsBean> rows;
            private List<?> footer;

            public int getPage() {
                return page;
            }

            public void setPage(int page) {
                this.page = page;
            }

            public int getPageSize() {
                return pageSize;
            }

            public void setPageSize(int pageSize) {
                this.pageSize = pageSize;
            }

            public int getTotal() {
                return total;
            }

            public void setTotal(int total) {
                this.total = total;
            }

            public List<RowsBean> getRows() {
                return rows;
            }

            public void setRows(List<RowsBean> rows) {
                this.rows = rows;
            }

            public List<?> getFooter() {
                return footer;
            }

            public void setFooter(List<?> footer) {
                this.footer = footer;
            }

            public static class RowsBean {
                /**
                 * c_content :
                 * c_numCard : 20190305187615048501556
                 * c_start_date :
                 * c_errtype :
                 * c_address : 碧水龙城/第X幢/第X单元/X层/x-101
                 * c_applyTel : 1866874456464
                 * c_applyName : yang
                 * c_subtype :
                 * c_applyArea :
                 * c_end_date :
                 * c_address_man : 碧水龙城/第X幢/第X单元/X层/x-101
                 * l_id : 2201
                 * c_status : 1
                 * c_from : 2
                 * * d_crea : 2
                 * * c_from : 2
                 d_createdate:表单创建时间
                c_name项目名
                 */
                private String  c_name;
                private String d_createdate;
                private String c_content;
                private String c_numCard;
                private String c_start_date;
                private String c_errtype;
                private String c_address;
                private String c_applyTel;
                private String c_applyName;
                private String c_subtype;
                private String c_applyArea;
                private String c_end_date;
                private String c_address_man;
                private int l_id;
                private String c_status;
                private String c_from;

                public void setC_name(String c_name) {
                    this.c_name = c_name;
                }

                public void setD_createdate(String d_createdate) {
                    this.d_createdate = d_createdate;
                }

                public String getC_name() {
                    return c_name;
                }

                public String getD_createdate() {
                    return d_createdate;
                }

                public String getC_content() {
                    return c_content;
                }

                public void setC_content(String c_content) {
                    this.c_content = c_content;
                }

                public String getC_numCard() {
                    return c_numCard;
                }

                public void setC_numCard(String c_numCard) {
                    this.c_numCard = c_numCard;
                }

                public String getC_start_date() {
                    return c_start_date;
                }

                public void setC_start_date(String c_start_date) {
                    this.c_start_date = c_start_date;
                }

                public String getC_errtype() {
                    return c_errtype;
                }

                public void setC_errtype(String c_errtype) {
                    this.c_errtype = c_errtype;
                }

                public String getC_address() {
                    return c_address;
                }

                public void setC_address(String c_address) {
                    this.c_address = c_address;
                }

                public String getC_applyTel() {
                    return c_applyTel;
                }

                public void setC_applyTel(String c_applyTel) {
                    this.c_applyTel = c_applyTel;
                }

                public String getC_applyName() {
                    return c_applyName;
                }

                public void setC_applyName(String c_applyName) {
                    this.c_applyName = c_applyName;
                }

                public String getC_subtype() {
                    return c_subtype;
                }

                public void setC_subtype(String c_subtype) {
                    this.c_subtype = c_subtype;
                }

                public String getC_applyArea() {
                    return c_applyArea;
                }

                public void setC_applyArea(String c_applyArea) {
                    this.c_applyArea = c_applyArea;
                }

                public String getC_end_date() {
                    return c_end_date;
                }

                public void setC_end_date(String c_end_date) {
                    this.c_end_date = c_end_date;
                }

                public String getC_address_man() {
                    return c_address_man;
                }

                public void setC_address_man(String c_address_man) {
                    this.c_address_man = c_address_man;
                }

                public int getL_id() {
                    return l_id;
                }

                public void setL_id(int l_id) {
                    this.l_id = l_id;
                }

                public String getC_status() {
                    return c_status;
                }

                public void setC_status(String c_status) {
                    this.c_status = c_status;
                }

                public String getC_from() {
                    return c_from;
                }

                public void setC_from(String c_from) {
                    this.c_from = c_from;
                }
            }
    }

    /**
     * 查询近期账单
     */
    public static class FlowDetailParam {
        public String id;
    }

    public static class FlowDetail {
        public RepairsDetail repairsDetail;
        public List<FlowList> flowList;

        public static class RepairsDetail{
            public int lId;
            public int lCorpid;
            public String cCorpname;
            public int lBuildingid;
            public String cBuildingname;
            public int lUserid;
            public String cNumcard;
            public String cApplyname;
            public String cApplytel;
            public String cRoomid;
            public String cAddressMan;
            public String cAddress;
            public String cApplyarea;
            public String cContent;
            public String cApplyimage;
            public String cIdentity;
            public String cErrtype;
            public String cSubtype;
            public String cStatus;
            public String cFrom;
            public String cCreator;
            public String cCreateid;
            public String dCreatedate;
            public String dAppointdate;
            public String cStartDate;
            public String cEndDate;
        }

        public static class FlowList{
            public String c_start_date;
            public String c_corpId;
            public String c_creator;
            public String c_rep_id;
            public String c_creatorid;
            public String c_end_date;
            public String c_remark;
            public String d_appoint_date;
            public String c_type;
            public List<Executors> executors;
            public int l_id;
            public String c_status;
            public String status;
            public String d_create_date;
            public String c_tel;
            public String f_cost;

            public FlowList() {
            }

            public FlowList(String d_create_date, String c_creator, String c_remark, String c_status) {
                this.d_create_date = d_create_date;
                this.c_creator = c_creator;
                this.c_remark = c_remark;
                this.c_status = c_status;
            }

            public FlowList(String c_status, String status) {
                this.c_status = c_status;
                this.status = status;
            }

            public class Executors {
                public String c_corpId;
                public String c_rep_flow_id;
                public String c_executor_id;
                public String c_repairs_id;
                public String c_executor;
            }
        }
    }

    /**
     * 添加新流程信息
     */
    public static class AddFlowParam {
        public String cRepId;
        public String cCorpid;
        public String cCreator;
        public String cCreatorid;
        public String cStatus;
        public String cRemark;
        public String cType;// 1自修 3外派
        public String dAppointDate;
        public String cStartDate;
        public String cEndDate;
        public String executorId;
        public String executor;

        public AddFlowParam(String cRepId, String cCorpid, String cCreator, String cCreatorid, String cStatus) {
            this.cRepId = cRepId;
            this.cCorpid = cCorpid;
            this.cCreator = cCreator;
            this.cCreatorid = cCreatorid;
            this.cStatus = cStatus;
        }

        public AddFlowParam(String cRepId, String cCorpid, String cCreator, String cCreatorid, String cStatus, String cType) {
            this.cRepId = cRepId;
            this.cCorpid = cCorpid;
            this.cCreator = cCreator;
            this.cCreatorid = cCreatorid;
            this.cStatus = cStatus;
            this.cType = cType;
        }
    }

    /**
     * 查询当前公司所有维修工
     */
    public static class AddMaintainPlanParam {
        public String lId;
        public String fCost;
        public String cRemark;
    }

    /**
     * 查询当前公司所有维修工
     */
    public static class FindRepairsByCorpParam {
        public String repId;
        public String corpId;

        public void setFindRepairsByCorp(String repId, String corpId) {
            this.repId = repId;
            this.corpId = corpId;
        }
    }

    public static class MaintenancePeople {
        public String isUse;
        public String c_password;
        public int doing;
        public String c_idno;
        public String c_usercode;
        public String c_corpid;
        public String role_type;
        public String c_demo;
        public String c_username;
        public String c_departid;
        public String c_datarights;
        public String c_sex;
        public String c_isadminn;
        public String c_account;
        public String c_stat;
        public String role_name;
        public String c_id;
        public String c_position;
        public int c_age;
        public String c_roleids;
        public String c_tel;

        public boolean isSelect() {
            if("0".equals(isUse)){
                return false;
            }
            return true;
        }

        public void setSelect(boolean select) {
            if(select){
                isUse = "1";
            }else{
                isUse = "0";
            }
        }
    }
}
